﻿--[[
    @Copyright 2015, Tencent Inc. All rights reserved.
    @brief    desc for network accelerate
    @autor    zhenzhang <zhenzhang@tencent.com>
    @version  1.0
    @date     2015-03-20
]]--

isp_setting_desc =
{
    module_name = 'isp_setting_desc',
    events = 
    {
        {
            c_event = 
            {
                {
                    -- id  = ierd_tgp.accelerate_module.ACCE_ON_GET_CLIENT_INFO,
                    -- callback = "preloadpage_control.load_page_success"
                }
            },
            lua_event =
            {
                {
                    id  = network_acc_event.OPEN_ISP_WINDOW,
                    callback = "isp_control.open_isp_window"
                },
                {
                    id  = network_acc_event.ClOSE_ISP_WINDOW,
                    callback = "isp_control.close_isp_window"
                }
            },
            lua_file = "tool_box\\network_acc\\isp_setting_control.lua"
        }
    }
};

isp_process_desc =
{
    module_name = 'isp_process_desc',
    events = 
    {
        {
            c_event = 
            {
                {
                    --id  = ierd_tgp.accelerate_module.ACCE_ON_ISP_REFRESH_END,
                    --callback = "isp_control.acce_on_isp_fresh_end"
                }
            },
            lua_event =
            {
                {
                    id  = network_acc_event.OPEN_ISP_PROCESS_WINDOW,
                    callback = "isp_process_control.open_isp_process_window"
                }
            },
            lua_file = "tool_box\\network_acc\\isp_process_control.lua"
        }
    }
};

isp_result_desc =
{
    module_name = 'isp_result_desc',
    events = 
    {
        {
            c_event = 
            {
                {
                    --id  = ierd_tgp.accelerate_module.ACCE_ON_ISP_REFRESH_END,
                    --callback = "isp_control.acce_on_isp_fresh_end"
                }
            },
            lua_event =
            {
                {
                    id  = network_acc_event.OPEN_ISP_RESULT_WINDOW,
                    callback = "isp_result_control.open_isp_result_window"
                }
            },
            lua_file = "tool_box\\network_acc\\isp_result_control.lua"
        }
    }
};

node_setting_desc =
{
    module_name = 'node_setting_desc',
    events = 
    {
        {
            c_event = 
            {
                {
                }
            },
            lua_event =
            {
                {
                    id  = network_acc_event.OPEN_NODE_SETTING_WINDOW,
                    callback = "node_setting_control.open_window"
                }
            },
            lua_file = "tool_box\\network_acc\\node_setting_control.lua"
        }
    }
};

node_setting_warning_desc =
{
    module_name = 'node_setting_warning_desc',
    events = 
    {
        {
            c_event = 
            {
                {
                }
            },
            lua_event =
            {
                {
                    -- id  = network_acc_event.OPEN_NODE_SETTING_WARNING_WINDOW,
                    -- callback = "node_setting_warning_control.open_window"
                }
            },
            lua_file = "tool_box\\network_acc\\node_setting_warning_control.lua"
        }
    }
};

router_admin_desc =
{
    module_name = 'router_admin_desc',
    events = 
    {
        {
            c_event = 
            {
                {
                }
            },
            lua_event =
            {
                {
                    id  = network_acc_event.OPEN_ROUTER_ADMIN_WINDOW,
                    callback = "router_admin_control.open_window"
                }
            },
            lua_file = "tool_box\\network_acc\\router_admin_control.lua"
        }
    }
};
desc_mgr.add(isp_setting_desc);
desc_mgr.add(isp_process_desc);
desc_mgr.add(isp_result_desc);
desc_mgr.add(node_setting_desc);
desc_mgr.add(node_setting_warning_desc);
desc_mgr.add(router_admin_desc);